package cn.xorange.commons.system.entity.system;

import cn.xorange.commons.data.annotation.MColumn;
import cn.xorange.commons.data.constants.KeyType;
import cn.xorange.commons.data.core.entity.DataEntity;
import cn.xorange.commons.utils.validate.MValidate;
import lombok.Data;

/**
 * @author : yangjian
 * date : 2022/2/3
 */
@Data
public class SysPost extends DataEntity {

    @MColumn(key = KeyType.AUTO)
    private Long postId;
    @MColumn(name = "岗位名称")
    @MValidate(repeatSearch = {"postName","tenantId"})
    private String postName;
    @MColumn
    private Long tenantId;
    @MColumn
    private String roleIds;
    @MColumn
    private Integer sort;
    @MColumn
    private String status;
    @MColumn(canNull = true)
    private String remark;

}
